package com.example.lijuan.myapplication.Service;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

/**
 * BroadcastReceiver to be launched by AlarmManager. Simply
 * passes the work over to LocationPollerService, who
 * arranges to make sure the WakeLock stuff is done
 * properly.
 */
public class LocationPoller extends BroadcastReceiver {
    /**
     * Standard entry point for a BroadcastReceiver. Delegates
     * the event to LocationPollerService for processing.
     */
    @Override
    public void onReceive(Context context, Intent intent) {
      LocationPollerService.requestLocation(intent);
    }
}
